using System;
using System.Collections.Generic;
using System.Text;

namespace tKitchen
{
    public class RecipePO
    {
        int recipeId;
        string name;
        string descr;
        RecipeCategoryPO category;
        IList<Recipe_IngredientPO> ingredients;
        IList<StepPO> steps;
        double rating;
        IList<RecipeCommentPO> comments;

        #region Properties
        public int RecipeId
        {
            get { return recipeId; }
            set { recipeId = value; }
        }

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string Descr
        {
            get { return descr; }
            set { descr = value; }
        }

        public RecipeCategoryPO Category
        {
            get { return category; }
            set { category = value; }
        }

        public IList<Recipe_IngredientPO> Ingredients
        {
            get { return ingredients; }
            set { ingredients = value; }
        }

        public IList<StepPO> Steps
        {
            get { return steps; }
            set { steps = value; }
        }


        public double Rating
        {
            get { return rating; }
            set { rating = value; }
        }
        public IList<RecipeCommentPO> Comments
        {
            get { return comments; }
            set { comments = value; }
        }
        #endregion

        public RecipePO()
        {
        }
        public RecipePO(int idIn, string nameIn, string descIn, RecipeCategoryPO catIn, 
            IList<Recipe_IngredientPO> ingIn, IList<StepPO> stepsIn, double ratingIn, IList<RecipeCommentPO> commentsIn)
        {
            recipeId = idIn;
            name = nameIn;
            category = catIn;
            ingredients = ingIn;
            steps = stepsIn;
            rating = ratingIn;
            comments = commentsIn;
        }


    }
}
